package com.zstu.mall.entity;

import com.zstu.mall.common.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.*;

/**
 * @author     : wuyc
 * @description: product_class
 * @date       : Created in 2019/11/24
 */
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@Table(name = "product_class")
public class ProductClass extends BaseEntity implements Serializable {

	/**
	 * 商品类别
	 * default value: '0'
	 */
	@Column(name = "type", nullable = false,length = 255)
	private String type;

	//其它表
	@Transient
	private List<Product> products;

	public ProductClass() {
		super();
		super.status = "1";
		super.remark = " ";
		super.gmtCreate = new Date();
		super.gmtModified = new Date();
		this.type = "0";
	}

	public List<Product> getProducts() {
		return products;
	}

	public void setProducts(List<Product> products) {
		this.products = products;
	}

	public String getType() {
		return this.type;
	}
	
	public void setType(String type) {
		this.type = type;
	}

}
